package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 代理服务Service业务层处理
 *
 * @author ruoyi
 * @date 2025-11-17
 */
@Service
public class ProxyServiceServiceImpl implements IProxyServiceService
{
    @Autowired
    private ProxyServiceMapper proxyServiceMapper;

    /**
     * 查询代理服务
     *
     * @param id 代理服务主键
     * @return 代理服务
     */
    @Override
    public ProxyService selectProxyServiceById(Integer id)
    {
        return proxyServiceMapper.selectProxyServiceById(id);
    }

    /**
     * 查询代理服务列表
     *
     * @param proxyService 代理服务
     * @return 代理服务
     */
    @Override
    public List<ProxyService> selectProxyServiceList(ProxyService proxyService)
    {
        return proxyServiceMapper.selectProxyServiceList(proxyService);
    }

    /**
     * 新增代理服务
     *
     * @param proxyService 代理服务
     * @return 结果
     */
    @Override
    public int insertProxyService(ProxyService proxyService)
    {
        return proxyServiceMapper.insertProxyService(proxyService);
    }

    /**
     * 修改代理服务
     *
     * @param proxyService 代理服务
     * @return 结果
     */
    @Override
    public int updateProxyService(ProxyService proxyService)
    {
        return proxyServiceMapper.updateProxyService(proxyService);
    }

    /**
     * 批量删除代理服务
     *
     * @param ids 需要删除的代理服务主键
     * @return 结果
     */
    @Override
    public int deleteProxyServiceByIds(Integer[] ids)
    {
        return proxyServiceMapper.deleteProxyServiceByIds(ids);
    }

    /**
     * 删除代理服务信息
     *
     * @param id 代理服务主键
     * @return 结果
     */
    @Override
    public int deleteProxyServiceById(Integer id)
    {
        return proxyServiceMapper.deleteProxyServiceById(id);
    }
}
